import { createStore } from 'vuex'
const store = createStore({
	state: {
		msg: {},
		count: 0
	},
	mutations: {
		addCount( state, data ) {
			state.count = state.count + data
		}
	},
	actions: {
		addCount({ commit }, data) {
			commit('addCount', data)
		}
	}
})
export default store